<?php /* Smarty version 2.6.26, created on 2013-08-26 04:03:14
         compiled from cart_default.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'thumb', 'cart_default.tpl', 17, false),array('modifier', 'number_format', 'cart_default.tpl', 19, false),array('modifier', 'l', 'cart_default.tpl', 47, false),)), $this); ?>
<section class="row clearfix cartInfo">
	<div class="post twelve">
	<form method="post">
		<table class="">
			<tr>
				<th>Sản phẩm</th>		
				<th></th>
				<th>Đơn giá</th>
				<th>Màu sắc</th>
				<th>Kích thước</th>
				<th>Số lượng</th>
				<th>Thành tiền</th>
				<th></th>
			</tr>
			<?php $_from = $this->_tpl_vars['cart']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['prd_id'] => $this->_tpl_vars['c']):
?>
			<tr>
				<td style="text-align: center;"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['aPrd'][$this->_tpl_vars['prd_id']]['product_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'w70') : smarty_modifier_thumb($_tmp, 'w70')); ?>
" /></td>
				<td style="text-align: left;"><?php echo $this->_tpl_vars['aPrd'][$this->_tpl_vars['prd_id']]['product_title']; ?>
</td>
				<td style="text-align: right;"><?php echo ((is_array($_tmp=$this->_tpl_vars['aPrd'][$this->_tpl_vars['prd_id']]['product_price'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
 VNĐ</td>
				<td style="text-align: center;">
					<div class="color-wrapper">
						<label class="color-item" style="background-color: <?php echo $this->_tpl_vars['aColor'][$this->_tpl_vars['c']['color_id']]['color_code']; ?>
" for="color_id_<?php echo $this->_tpl_vars['aColor'][$this->_tpl_vars['c']['color_id']]['color_id']; ?>
">
							<?php if ($this->_tpl_vars['aColor'][$this->_tpl_vars['c']['color_id']]['color_thumb'] != ''): ?><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['aColor'][$this->_tpl_vars['c']['color_id']]['color_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'crop40x40') : smarty_modifier_thumb($_tmp, 'crop40x40')); ?>
" /><?php endif; ?>
						</label>
					</div>
				</td>
				<td style="text-align: center;">
					<div class="size-wrapper">
						<?php echo $this->_tpl_vars['aSize'][$this->_tpl_vars['c']['size_id']]; ?>

					</div>
				</td>
				<td style="text-align: center;">
					<select name="prd_qtt[<?php echo $this->_tpl_vars['prd_id']; ?>
]">
						<option value="1" <?php if ($this->_tpl_vars['c']['quantity'] == 1): ?>selected="selected"<?php endif; ?>>1</option>
						<option value="2" <?php if ($this->_tpl_vars['c']['quantity'] == 2): ?>selected="selected"<?php endif; ?>>2</option>
						<option value="3" <?php if ($this->_tpl_vars['c']['quantity'] == 3): ?>selected="selected"<?php endif; ?>>3</option>
						<option value="4" <?php if ($this->_tpl_vars['c']['quantity'] == 4): ?>selected="selected"<?php endif; ?>>4</option>
						<option value="5" <?php if ($this->_tpl_vars['c']['quantity'] == 5): ?>selected="selected"<?php endif; ?>>5</option>
						<option value="6" <?php if ($this->_tpl_vars['c']['quantity'] == 6): ?>selected="selected"<?php endif; ?>>6</option>
						<option value="7" <?php if ($this->_tpl_vars['c']['quantity'] == 7): ?>selected="selected"<?php endif; ?>>7</option>
						<option value="8" <?php if ($this->_tpl_vars['c']['quantity'] == 8): ?>selected="selected"<?php endif; ?>>8</option>
						<option value="9" <?php if ($this->_tpl_vars['c']['quantity'] == 9): ?>selected="selected"<?php endif; ?>>9</option>
						<option value="10" <?php if ($this->_tpl_vars['c']['quantity'] == 10): ?>selected="selected"<?php endif; ?>>10</option>
					</select>
				</td>
				<td style="text-align: right;"><?php echo ((is_array($_tmp=$this->_tpl_vars['c']['quantity']*$this->_tpl_vars['aPrd'][$this->_tpl_vars['prd_id']]['product_price'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
 VNĐ</td>
				<td style="text-align: center;"><a class="btn" href="<?php echo ((is_array($_tmp='cart/delete/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['prd_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['prd_id'])); ?>
">Xóa</a></td>
			</tr>
			<?php endforeach; else: ?>
			<tr><td colspan="8" style="text-align: center;">(Chưa có sản phẩm nào trong giỏ hàng)</td></tr>
			<?php endif; unset($_from); ?>
			
			<?php if ($this->_tpl_vars['total'] > 0): ?>
			<tr class="total">
				<td colspan="6" style="text-align: right">Tổng tiền</td>
				<td colspan="2"><?php echo ((is_array($_tmp=$this->_tpl_vars['total'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
 VNĐ</td>
			</tr>
			<?php endif; ?>
		</table>
		<?php if ($this->_tpl_vars['total'] > 0): ?>
		<div class="content-toolbar">
			<input type="submit" name="update" value="Cập nhật giỏ hàng" /> <input type="submit" name="checkout" value="Bước tiếp theo" />
		</div>
		<?php endif; ?>
	</form>
	</div>
</section>